/**
 * @Author: xzy 1453077527@qq.com
 * @Date: 2025-08-24 00:34:58
 * @LastEditors: xzy 1453077527@qq.com
 * @LastEditTime: 2025-08-26 17:01:07
 * @Description:
 */
package com.xtedu.examproject.dao.base;

import com.xtedu.examproject.entity.ExamQuestion;
import com.xtedu.examproject.util.PageHelper;

import java.util.List;

public interface BaseDao<T> {
    int insert(T t) throws Exception;

    int update(T t) throws Exception;

    int delete(T t) throws Exception;

    int deleteById(int id) throws Exception;

    T findById(int id) throws Exception;

    List<T> findAll() throws Exception;

    PageHelper findAllByPage(int pageindex, int pagesize) throws Exception;

    PageHelper findPageByRoleIds(int pageindex, int pagesize, int... roleIds) throws Exception;
}
